﻿using MengLin.OOP.DesignPattern.Strategy.WarriorFight.Implements;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.Strategy.WarriorFight
{
    class Program
    {
        static void Main(string[] args)
        {
            Context context;
            context = new Context(new Bow());
            Console.WriteLine("选择武器为箭");
            context.Fight();

            Console.WriteLine("====================================================");
            context = new Context(new Knife());
            Console.WriteLine("选择武器为刀");
            context.Fight();

            Console.WriteLine("====================================================");
            context = new Context(new Qiang());
            Console.WriteLine("选择武器为枪");
            context.Fight();
            Console.Read();

        }
    }
}
